package com.ruoyi.cs.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @ClassName TGoodsPricingRange
 * @Description TODO
 * @Author zz
 * @Date 2024/2/5
 **/
@Data
public class TGoodsPricingRange {
    @ApiModelProperty(value = "主键")
    private Integer id;

    @NotNull
    @ApiModelProperty(value = "最低价格")
    private BigDecimal minPrice;

    @NotNull
    @ApiModelProperty(value = "最高价格")
    private BigDecimal maxPrice;

    @NotNull
    @ApiModelProperty(value = "溢价系数")
    private BigDecimal factorPremium;

    @NotNull
    @ApiModelProperty(value = "溢价低价")
    private BigDecimal discountedPrice;

    @NotNull
    @ApiModelProperty(value = "排序")
    private Integer sort;

    /** 创建时间 */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 更新时间 */
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}
